package com.bsj.power.common.def.vo.pls.uwb;

import lombok.Data;

@Data
public class UWBInfoVO {

    private byte[] head = new byte[]{0x55, (byte) 0xAA};
    //数据长度
    private int dataLen;
    //唯一编号
    private int nodeNo;
    //数据类型
    private int dataType;
    //备用
    private byte[] spare;
    //总包数
    private int totalPacket;
    //当前包数
    private int nowPacket;
    //流水号
    private int serial;
    //时间
    private long time;
    //内容
    private byte[] context;
    //检验
    private byte[] check;

//    public void changeDto(byte[] context, int nodeNo, long millis) {
//        this.dataLen = 1 + 1 + 2 + 2 + 2 + 4 + 8 + context.length;
//        this.nodeNo = nodeNo;
//        //0x63
//        this.dataType = 99;
//        this.totalPacket = 0;
//        this.nowPacket = 0;
//        this.serial = TestData.suNum();
//        this.time = millis;
//        this.context = context;
//    }


}
